package com.eqdd.yiqidian.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by lvzhihao on 17-6-21.
 */

public class WorkCircleBean implements Serializable {


    /**
     * isZan : false
     * newImages : null
     * UserZan : [{"guid":"966dc074e3f14695a32b8932e0ad5490","nickName":"游客15690783806","name":"","headImage":"http://47.94.173.253:80080","department":"研发部","departmentId":2,"post":".NET后台","postId":3,"company":"","companyId":0}]
     * Id : 2
     * CompanyId : 8
     * Creater : ad24c1f1a2b343cc94b80466fa18150e
     * CreateTime : 2017-07-24T12:04:30.733
     * Message : 第二条工作圈
     * ImageUrls : null
     * location : 0
     * CommentCount : 3
     * PostId : 3
     * DepartId : 2
     * upname : 游客15286837836
     * iphoto : http://47.94.173.253:80080
     * uname : 15286837836
     * com_name : qiye
     * departName : 研发部
     * postName : .NET后台
     * staffName : 胡勇
     * ZanCount : 1
     * "type":0,
     * "sourceTitle":"",
     * "source":"",
     * "sourceUrl":""
     */


    private boolean isZan;
    private List<String> newImages;
    private int Id;
    private int CompanyId;
    private String Creater;
    private String CreateTime;
    private String Message;
    private String ImageUrls;
    private String location;
    private int CommentCount;
    private int PostId;
    private int DepartId;
    private String upname;
    private String iphoto;
    private String uname;
    private String com_name;
    private String departName;
    private String postName;
    private String staffName;
    private int ZanCount;
    private List<UserZanBean> UserZan;
    private int type;
    private String sourceTitle;
    private String source;
    private String sourceUrl;


    public boolean isIsZan() {
        return isZan;
    }

    public void setIsZan(boolean isZan) {
        this.isZan = isZan;
    }

    public List<String> getNewImages() {
        ArrayList<String> list = new ArrayList<>();
        if (newImages != null) {
            for (String newImage : newImages) {
                newImage.replace(".png", "min.png");
                list.add(newImage);
            }
        }
        return list;
    }

    public void setNewImages(List<String> newImages) {
        this.newImages = newImages;
    }

    public int getId() {
        return Id;
    }

    public void setId(int Id) {
        this.Id = Id;
    }

    public int getCompanyId() {
        return CompanyId;
    }

    public void setCompanyId(int CompanyId) {
        this.CompanyId = CompanyId;
    }

    public String getCreater() {
        return Creater;
    }

    public void setCreater(String Creater) {
        this.Creater = Creater;
    }

    public String getCreateTime() {
        return CreateTime;
    }

    public void setCreateTime(String CreateTime) {
        this.CreateTime = CreateTime;
    }

    public String getMessage() {
        return Message;
    }

    public void setMessage(String Message) {
        this.Message = Message;
    }

    public String getImageUrls() {
        return ImageUrls;
    }

    public void setImageUrls(String imageUrls) {
        ImageUrls = imageUrls;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public int getCommentCount() {
        return CommentCount;
    }

    public void setCommentCount(int CommentCount) {
        this.CommentCount = CommentCount;
    }

    public int getPostId() {
        return PostId;
    }

    public void setPostId(int PostId) {
        this.PostId = PostId;
    }

    public int getDepartId() {
        return DepartId;
    }

    public void setDepartId(int DepartId) {
        this.DepartId = DepartId;
    }

    public String getUpname() {
        return upname;
    }

    public void setUpname(String upname) {
        this.upname = upname;
    }

    public String getIphoto() {
        return iphoto;
    }

    public void setIphoto(String iphoto) {
        this.iphoto = iphoto;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getCom_name() {
        return com_name;
    }

    public void setCom_name(String com_name) {
        this.com_name = com_name;
    }

    public String getDepartName() {
        return departName;
    }

    public void setDepartName(String departName) {
        this.departName = departName;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public int getZanCount() {
        return ZanCount;
    }

    public void setZanCount(int ZanCount) {
        this.ZanCount = ZanCount;
    }

    public List<UserZanBean> getUserZan() {
        return UserZan;
    }

    public void setUserZan(List<UserZanBean> UserZan) {
        this.UserZan = UserZan;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getSourceTitle() {
        return sourceTitle;
    }

    public void setSourceTitle(String sourceTitle) {
        this.sourceTitle = sourceTitle;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getSourceUrl() {
        return sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    public static class UserZanBean implements Serializable {
        /**
         * guid : 966dc074e3f14695a32b8932e0ad5490
         * nickName : 游客15690783806
         * name :
         * headImage : http://47.94.173.253:80080
         * department : 研发部
         * departmentId : 2
         * post : .NET后台
         * postId : 3
         * company :
         * companyId : 0
         */

        private String guid;
        private String nickName;
        private String name;
        private String headImage;
        private String department;
        private int departmentId;
        private String post;
        private int postId;
        private String company;
        private int companyId;
        private int id;

        public UserZanBean(String guid, String headImage) {
            this.guid = guid;
            this.headImage = headImage;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getGuid() {
            return guid;
        }

        public void setGuid(String guid) {
            this.guid = guid;
        }

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getHeadImage() {
            return headImage;
        }

        public void setHeadImage(String headImage) {
            this.headImage = headImage;
        }

        public String getDepartment() {
            return department;
        }

        public void setDepartment(String department) {
            this.department = department;
        }

        public int getDepartmentId() {
            return departmentId;
        }

        public void setDepartmentId(int departmentId) {
            this.departmentId = departmentId;
        }

        public String getPost() {
            return post;
        }

        public void setPost(String post) {
            this.post = post;
        }

        public int getPostId() {
            return postId;
        }

        public void setPostId(int postId) {
            this.postId = postId;
        }

        public String getCompany() {
            return company;
        }

        public void setCompany(String company) {
            this.company = company;
        }

        public int getCompanyId() {
            return companyId;
        }

        public void setCompanyId(int companyId) {
            this.companyId = companyId;
        }
    }
}
